package by.android.khan.task.common;

import org.json.JSONObject;

public class JSONObjectTask extends CommonAsyncTask<JSONObject> {
	
	public JSONObjectTask(ParamCallback<JSONObject> paramCallback) {
		super(paramCallback);
	}

	@Override
	public JSONObject convert(String source) throws Exception {
		if (source == null || source.length() == 0) {
			return null;
		}
		return new JSONObject(source);
	}

}
